package com.bsoft.gol.editor.dao;


import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import com.bsoft.gol.editor.editor.EditorWidgetClass;

import java.util.List;

/**
 * Created by Sangs on 2020/4/3.
 */
public abstract class EditorWidgetClassDAO extends ctd.persistence.support.hibernate.HibernateSupportDelegateDAO<EditorWidgetClass> {

    public EditorWidgetClassDAO() {
        this.setKeyField("widgetClassId");
    }

    @DAOMethod(sql = "update EditorWidgetClass set widgetClassName=:className where widgetClassId =:classId ")
    public abstract void updateEditorWidgetClassName(@DAOParam("classId") String classId,@DAOParam("className") String className);

    @DAOMethod(sql = "from EditorWidgetClass ")
    public abstract List<EditorWidgetClass> queryEditorWidgetClassAll();

}